package cn.zxl.graduate.exception;

import cn.zxl.graduate.util.JsonResult;

/**
 * @Author: bo-feifei
 * @Date 2021/11/1 15:29
 * @Version 1.0
 */

public class BusinessException extends RuntimeException{
    private Integer code = JsonResult.CODE_ERROR;

    public BusinessException() {
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Integer code,String message) {
        super(message);
        this.code = code;
    }
}
